package org.amphiprion.diceroller.entity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class Game {
	// private String name;
	private String background;
	private String diceChooserBackgroundImage;
	private String diceChooserLeftImage;
	private String diceChooserRightImage;

	private HashMap<String, GameSymbole> gameSymboles = new HashMap<String, GameSymbole>();
	private List<GameDice> gameDices = new ArrayList<GameDice>();

	// public String getName() {
	// return name;
	// }
	//
	// public void setName(String name) {
	// this.name = name;
	// }

	public HashMap<String, GameSymbole> getGameSymboles() {
		return gameSymboles;
	}

	public List<GameDice> getGameDices() {
		return gameDices;
	}

	public String getBackground() {
		return background;
	}

	public void setBackground(String background) {
		this.background = background;
	}

	public String getDiceChooserBackgroundImage() {
		return diceChooserBackgroundImage;
	}

	public void setDiceChooserBackgroundImage(String diceChooserBackgroundImage) {
		this.diceChooserBackgroundImage = diceChooserBackgroundImage;
	}

	public String getDiceChooserLeftImage() {
		return diceChooserLeftImage;
	}

	public void setDiceChooserLeftImage(String diceChooserLeftImage) {
		this.diceChooserLeftImage = diceChooserLeftImage;
	}

	public String getDiceChooserRightImage() {
		return diceChooserRightImage;
	}

	public void setDiceChooserRightImage(String diceChooserRightImage) {
		this.diceChooserRightImage = diceChooserRightImage;
	}

	public GameDice getGameDice(String dice) {
		for (int i = 0; i < gameDices.size(); i++) {
			if (gameDices.get(i).getId().equals(dice)) {
				return gameDices.get(i);
			}
		}
		return null;
	}
}
